package org.example.cicdi.jpa;

/*import com.example.jpa.example1.WebGenerateModel;*/

import lombok.Data;
import org.example.codegenerate.modelext.WebVo.Enum.EnumPageFieldType;
import org.example.codegenerate.modelext.WebVo.annotation.Column.*;


import javax.persistence.*;
import java.util.Date;

@Data
@MappedSuperclass
//@EntityListeners({AuditingEntityListener.class,EntityLoggingListener.class})
public class BaseEntity {
	@Id
	@Column(name = "id", columnDefinition = "varchar(36) COMMENT '主键'",length = 120)
	@PageVo(fieldShowType = EnumPageFieldType.文本框,isQuery = 0,isShowForm = 0,isReadOnly = 1,isShowList = 0,queryMode = "single",sortFlag = "N",orderNum = 1)
	@ValidateVo
	@ForeignKeyVo
	@IndexVo
	@SearchVo
	@Other
	private String id;

	@Column(name = "create_by" ,columnDefinition="varchar(50) COMMENT '创建人'",length = 120)
	@PageVo(fieldShowType = EnumPageFieldType.文本框,isQuery = 0,isShowForm = 0,isShowList = 0,isReadOnly = 0,queryMode = "single",sortFlag = "N",orderNum = 2)
	@ValidateVo
	@ForeignKeyVo
	@IndexVo
	@SearchVo
	@Other
	private String createBy;

	@Column(name = "create_time" ,columnDefinition="datetime COMMENT '创建日期'",length = 120)
	@PageVo(fieldShowType = EnumPageFieldType.日期yyyymmddhhmmss,isQuery = 0,isShowForm = 0,isShowList = 0,isReadOnly = 0,queryMode = "single",sortFlag = "N",orderNum = 3)
	@ValidateVo
	@ForeignKeyVo
	@IndexVo
	@SearchVo
	@Other
	private Date createTime;


	@Column(name = "update_by" ,columnDefinition="varchar(50) COMMENT '更新人'",length = 120)
	@PageVo(fieldShowType =  EnumPageFieldType.文本框,isQuery = 0,isShowForm = 0,isShowList = 0,isReadOnly = 0,queryMode = "single",sortFlag = "N",orderNum = 4)
	@ValidateVo
	@ForeignKeyVo
	@IndexVo
	@SearchVo
	@Other
	private String updateBy;

	@Column(name = "update_time" ,columnDefinition="datetime COMMENT '更新日期'",length = 120)
	@PageVo(fieldShowType = EnumPageFieldType.日期yyyymmddhhmmss,isQuery = 0,isShowForm = 0,isShowList = 0,isReadOnly = 0,queryMode = "single",sortFlag = "N",orderNum = 5)
	@ValidateVo
	@ForeignKeyVo
	@IndexVo
	@SearchVo
	@Other
	private Date updateTime;

	/*@Column(name = "sys_org_code", length = 64)
	@PageVo(fieldShowType = "datetime",isQuery = 0,isShowForm = 0,isShowList = 0,isReadOnly = 0,queryMode = "single",sortFlag = "N",orderNum = 6)
	@ValidateVo
	@ForeignKeyVo
	@IndexVo
	@SearchVo
	@Other
	private String sysOrgCode;*/


}
